package com.fs.controller.vo.purchase;

import com.fs.service.bo.purchase.BoPurchase;
import com.fs.service.bo.room.BoRoom;
import com.fs.utils.Utils;
import lombok.Data;


@Data
public class RespCreatePurchase {
    private Integer id;
    private float amount;
    private String beginDateTime;
    private String endDateTime;

    public RespCreatePurchase(BoPurchase purchase) {
        this.id=purchase.getId();
        this.amount=purchase.getAmount();
        this.beginDateTime= Utils.localDateTimeToString(purchase.getBeginTime());
        this.endDateTime = Utils.localDateTimeToString(purchase.getEndTime());
    }

}
